<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>出售记录创建</title>
		<link href="__CSS__/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="__CSS__/iconfont.css" />
		<link rel="stylesheet" href="__CSS__/style.css" />
		<link rel="stylesheet" href="__CSS__/mall.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-icon mui-icon-left-nav mui-pull-left" href="{:url('member/pro_record_list',['pid'=>$pid])}"></a>
			<h1 class="mui-title">出售记录创建</h1>
		</header>
		<div class="mui-content ">
			<div class="gerenzl_nr">
				<form id="myForm" class="mui-input-group gerenzl_group">
					<div class="mui-input-row">
						<label>出售数量</label>
						<input type="text" name="num" style="width: 65%;" class="mui-input-group" placeholder="请填写出售数量 ">
					</div>
					<div class="mui-input-row">
						<label>出售价格</label>
						<input type="text" name="price" style="width: 65%;" class="mui-input-group" placeholder="请填写出售单价多少钱 ">
					</div>
					<div class="mui-input-row">
						<label>出售总计</label>
						<input type="text" name="pay_price" style="width: 65%;" class="mui-input-group" placeholder="请填写出售总计多少钱 ">
					</div>
						<div class="mui-input-row">
							<label>备注</label>
							<textarea name="info" style="width:100%;height:150px;border: 1px solid #CCCCCC;" placeholder="请填写备注"></textarea>
						</div>
						<input type="hidden" name="pid" value="{$pid}">
						<button type="submit" class="fjysq_sbtn">免费创建</button>
					</div>
				</form>
			</div>
		</div>
	</body>

</html>
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/jquery.validate.min.js"></script>
<script src="__JS__/mui.min.js"></script>
<script src="__LIB__/layer.js"></script>
<script src="__JS__/index.js"></script>
<script type="text/javascript">
	$(function() {
		$("#myForm").validate({
			focusInvalid: true,
			onkeyup: false,
			ignore: "",
			onfocusout: false,
			showErrors: function(errorMap, errorList) {
				var msg = "";
				if(errorList != null && errorList != "") {
					msg = errorList[0]['message'];
					layer.msg(msg);
				}
			},
			submitHandler: function(form) {
				app.ajax();
			},
			rules: {
				num: {
					required: true
				},
				price: {
					required: true
				},
				pay_price: {
					required: true
				}
			},
			messages: {
				num: {
					required: "请填写数量"
				},
				price: {
					required: "请填写出售价格"
				},
				pay_price: {
					required: "请填写出售总计"
				}
			}
		});
	});
</script>
